package com.li.Iteratorpattern;

/**
 * @author lirenchun
 */
public class Test {
    public static void main(String[] args) {
        String[] names={"hello","world","bob!"};
        Container container=new ContainerImpl(names);
        Iterator iterator=container.getIterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }

    }
}
